package _spring_test._CircularReference;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: huangya
 * @Date: 2020/09/22
 * @Description:
 */
@Component
public class ClassB {

    private String b1;

    @Autowired
    private ClassA classA;

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public ClassA getClassA() {
        return classA;
    }

    public void setClassA(ClassA classA) {
        this.classA = classA;
    }

    public String getAClassa1(){
        return classA.getA1();
    }
}
